﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Content.cs" company="Anton Frattaroli">
//   Copyright (c) Anton Frattaroli. All rights reserved.
// </copyright>
// <summary>
//   Defines the Content class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Lidocaine.BusinessObjects
{
    using System;
    
    /// <summary>
    /// Defines the Content class.
    /// </summary>
    public class Content
    {
        /// <summary>
        /// Gets or sets the content's database row identity.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the content's associated page.
        /// </summary>
        public virtual int PageId { get; set; }

        /// <summary>
        /// Gets or sets the content's author.
        /// </summary>
        public virtual int AuthorId { get; set; }

        /// <summary>
        /// Gets or sets the content's date and time it was created.
        /// </summary>
        public DateTime Created { get; set; }

        /// <summary>
        /// Gets or sets the content's html.
        /// </summary>
        public string Html { get; set; }

        /// <summary>
        /// Gets or sets the host PageLayout.
        /// </summary>
        public virtual PageLayout PageLayout { get; set; }

        /// <summary>
        /// Gets or sets the author Profile.
        /// </summary>
        public virtual UserProfile Author { get; set; }
    }
}